package com.blensmile.utils;

import android.animation.ObjectAnimator;
import android.os.Build;
import android.os.Environment;
import android.text.format.DateUtils;
import android.util.Log;

import java.io.File;
import java.io.FileWriter;

/**
 * Created by Blensmile on 2016/11/29.
 */
public class LogUtils {
    public static boolean isDebug = true;

    public static void d(String tag,String message){
        if(isDebug){
            Log.d(tag,message);
        }
    }
    public static void e(String tag,String message){
        if(isDebug){
            Log.e(tag, message);
        }
    }
    public static void v(String tag,String message){
        if(isDebug){
        }
    }
    public static void i(String tag,String message){
        if(isDebug){
            Log.i(tag,message);
        }
    }
    public static void b(String message){
        if(isDebug){
            i("blen",message);
        }
    }

    public static String printArray(Object[] o){
        StringBuilder builder = new StringBuilder();
        for(Object item:o){
            builder.append(item.toString()).append("\n");
        }
        return builder.toString();
    }
}
